import 'package:demo/resources.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

class LoadingDialog extends ConsumerStatefulWidget {
  const LoadingDialog(this.loadingText, {super.key});

  final String loadingText;

  @override
  ConsumerState<ConsumerStatefulWidget> createState() => _LoadingDialogState();
}

class _LoadingDialogState extends ConsumerState<LoadingDialog> {
  @override
  Widget build(BuildContext context) {
    return Container(
        width: 100,
        height: 100,
        decoration: const BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(6)), color: Resources.black60),
        alignment: Alignment.center,
        child: const CircularProgressIndicator(color: Resources.feae00));
  }
}
